import request from '../utils/request.js'
// 存酒列表
export const storeSaveListApi = data => {
  return request({
    url: '/api/cashier/manage/plugin/store-save/list',
    method: 'POST',
    data,
  });
};
// 添加存酒
export const storeSaveAddApi = data => {
  return request({
    url: '/api/cashier/manage/plugin/store-save/add',
    method: 'POST',
    data,
  });
};
// 取存酒
export const storeSaveTakeGoodsApi = data => {
  return request({
    url: '/api/cashier/manage/plugin/store-save/take-goods',
    method: 'POST',
    data,
  });
};
// 存酒详情
export const storeSaveInfoApi = data => {
  return request({
    url: '/api/cashier/manage/plugin/store-save/info',
    method: 'GET',
    data,
  });
};
// 获取可存储商品
export const getSaveGoodsListApi = data => {
  return request({
    url: '/api/cashier/manage/plugin/store-save/goods-list',
    method: 'GET',
    data,
  });
};
// 用户列表
export const storeSaveUserListApi = data => {
  return request({
    url: '/api/cashier/manage/plugin/store-save/user-list',
    method: 'POST',
    data,
  });
};
// 上传图片
export const diyMaterialAddApi = file => {
  const formData = new FormData();
  formData.append('file', file);
  return request({
    url: '/api/diy/material/add',
    method: 'POST',
    data: formData,
  });
};
